package com.bgs.eat.memberRecord.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import javax.persistence.Id;
import javax.persistence.Table;
import java.util.Date;

/**
 * @ClassName MemberRecordEntity
 * @Description TODO 购买会员记录实体类
 * @Author G胖
 * @Date 2022-10-11 上午 11:15
 **/

@Table(name="member_record")
@Data
public class MemberRecordEntity {

    // 购买会员记录id
    @Id
    private Integer id;

    // 购买会员账号
    private String userName;


    // 购买会员月份
    private Integer month;

    // 购买会员价钱
    private Double price;

    //购买会员id
    private Integer memberId;

    // 购买会员名称
    private String memberName;

    // 会员开通时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;

    // 会员过期时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date expirationTime;

    // 会员是否过期 0正常1过期
    private Integer delFlag;

    // 会员订单号
    private String orderNum;
}
